import numpy as np
from matplotlib import pyplot as plt


# y = x * cos(pi * x)
def fun(x):
    return x * np.cos(np.pi * x)

plt.figure()

